<?php
ob_start();
session_cache_expire(999999999);
if (!isset($_SESSION)) {
    session_start();
}
if($_SESSION['role']!=2){
	echo $_SESSION['role'];
	header("Location: ../index.php");
}
include 'operations/prevent_global_variable.php';
$lang = $_SESSION['lang'];
include("operations/get_lang.php");
include 'operations/connection.php';
$value = getlang();
include($value);
$content = "content-project/project-detail.php";
if (isset($_REQUEST['projectDetail'])) {
    $content = "content-project/" . $_REQUEST['projectDetail'] . ".php";
}
$tab = "1";
if (isset($_REQUEST['tab'])) {
    if ($_REQUEST['tab'] == 2) {
        $tab = "2";
    }
}
$lang = $_SESSION['lang'];
if ($lang == '') {
    $lang = 'EN';
    $_SESSION['lang'] = "EN";
}
if (isset($_REQUEST['id']))
    $id = $_REQUEST['id'];
if (!isset($_SESSION['user'])) {
    header('Location: login.php?timeout=on');
} else {
    $username = $_SESSION['fullname'];
    $id_employee = $_SESSION['IDEmployee'];
}
echo $_SESSION['back'];
$title = $_SESSION['browser'];
require("MainTemplate.php");
ob_flush();
?>
